package com.xiaoy.core.bpm.simple.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.xiaoy.core.bpm.util.ConfigTable;
import com.xiaoy.entity.BaseBean;

@Entity
@Table(name = ConfigTable.Process.PROCESS_DEFINE)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ProcessDefine extends BaseBean {

	private static final long serialVersionUID = 1L;
	private String processDefineName;
	private String processDefineId;
	private String processDefineKey;
	private String processDeploymentId;
	private String name;
	private String formUrl;

	private String approvalType;	// 1单一表单：所有的节点只有一个表单，2多表单，每个节点都可能有相应的表单
	private String formType;		// 1是自己写页面，还是生成表单，2、3生成分两种类型

	public String getFormType() {
		return formType;
	}

	public void setFormType(String formType) {
		this.formType = formType;
	}

	public String getApprovalType() {
		return approvalType;
	}

	public void setApprovalType(String approvalType) {
		this.approvalType = approvalType;
	}

	public String getFormUrl() {
		return formUrl;
	}

	public void setFormUrl(String formUrl) {
		this.formUrl = formUrl;
	}

	public String getProcessDefineKey() {
		return processDefineKey;
	}

	public void setProcessDefineKey(String processDefineKey) {
		this.processDefineKey = processDefineKey;
	}

	public String getProcessDefineName() {
		return processDefineName;
	}

	public void setProcessDefineName(String processDefineName) {
		this.processDefineName = processDefineName;
	}

	public String getProcessDefineId() {
		return processDefineId;
	}

	public void setProcessDefineId(String processDefineId) {
		this.processDefineId = processDefineId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getProcessDeploymentId() {
		return processDeploymentId;
	}

	public void setProcessDeploymentId(String processDeploymentId) {
		this.processDeploymentId = processDeploymentId;
	}

}
